package duotaitest1;

public class Animal {
    private String colour;
    private int age;

    public Animal() {
    }

    public Animal(String colour, int age) {
        this.colour = colour;
        this.age = age;
    }

    public String getColour() {
        return colour;
    }

    public void setColour(String colour) {
        this.colour = colour;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void eat(String something){
        System.out.println("在吃东西");
    }

}
